package cn.signalpha.modules.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类
 *
 * @author signalpha
 */
@Data
@TableName("sys_operate_log")
@ApiModel(value = "OperateLog对象", description = "操作日志")
public class OperateLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
  	private Long id;

	@ApiModelProperty(value = "租户id")
	private String tenantId;

    @ApiModelProperty(value = "操作人id")
    private Long operateId;

	@ApiModelProperty(value = "操作类型：0授权 1提交 2新增 3修改 4删除 5审核")
	private Integer operateType;

    @ApiModelProperty(value = "操作人姓名")
    private String operateName;

	@ApiModelProperty(value = "操作人账号")
	private String operateAccount;

	@ApiModelProperty(value = "请求ip")
	private String requestIp;

	@ApiModelProperty(value = "请求URL")
	private String requestUrl;

	@ApiModelProperty(value = "请求参数")
	private String requestParam;

	@ApiModelProperty(value = "响应参数")
	private String responseParam;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

}
